<template>
	<div>
		<div>
			
			<router-link to="/set"><van-icon  name="setting-o" /></router-link>
		</div>
		{{userInfo.nickname}}
		<p>{{userInfo.avatar}}</p>
		<img :src="userInfo.avatar" alt="">
	</div>
	
</template>
<script setup>
import { ref ,onMounted,toRefs} from 'vue';

// onMounted(function(){
	
	// console.log(JSON.parse(sessionStorage.getItem('userInfo')))

import useUserStore from '@/store/userStore';
   let {userInfo} =  toRefs(useUserStore()) 

// 数据回填
</script>
<style></style>